Interview Questions and Answer
Options:
a. { 3+3 }
b. {{ 3+ 3 }}
c. (( 3+3 ))
d. {( 3+3 )}
Reveal Answer
Options:
a. An expression cannot contain loops, conditions ,regex.
b. AngularJS expression trying to evaluate undefined and null properties generates Reference errors.
c. Expressions cannot declare functions.
d. Can use filters within expression.
Reveal Answer
Options:
a. <div ng-init="names=[{firstname:' sandeep',lastname:'soni'},{firstname:'john',lastname:'doe'},{firstname:'mohammed',lastname:'akbar'}]"> <select> <option ng-repeat="name in names">{{name.firstname+" "+name.lastname}}</option> </select> </div>
b. <div ng-init="names=[{firstname:' sandeep',lastname:'soni'},{firstname:'john',lastname:'doe'},{firstname:'mohammed',lastname:'akbar'}]"> <select> <option>{{names[0].firstname+" "+names[0].lastname}}</option> <option>{{names[1].firstname+" "+names[1].lastname}}</option> <option>{{names[2].firstname+" "+names[2].lastname}}</option> </select> </div>
c. <div ng-init="names=[{firstname:' sandeep',lastname:'soni'},{firstname:'john',lastname:'doe'},{firstname:'mohammed',lastname:'akbar'}]"> <select> <option>{{names[1].firstname+" "+names[1].lastname}}</option> <option>{{names[2].firstname+" "+names[2].lastname}}</option> <option>{{names[3].firstname+" "+names[3].lastname}}</option> </select> </div>
d. <div ng-init="names=[{firstname:' sandeep',lastname:'soni'},{firstname:'john',lastname:'doe'},{firstname:'mohammed',lastname:'akbar'}]"> <select> <option ng-bind="names[0].firstname+' '+names[0].lastname"></option> <option ng-bind="names[1].firstname+' '+names[1].lastname"></option> <option ng-bind="names[2].firstname+' '+names[2].lastname"></option> </select> </div>
Reveal Answer
Options:
a. By wrapping up Interpolation Functions.
b. using $errorHandler sevice.
c. using $exceptionHandler service.
d. using $log service.
Reveal Answer
Options:
a. { firstname || lowercase }
b. {{ firstname | lowercase }}
c. {{ firstname || lowercase }}
d. { firstname | lowercase }
Reveal Answer
Bestdotnet google plus